package com.zbkj.crmeb.store.response;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@Accessors(chain = true)
public class SupplierOrderInfoResponse implements Serializable {

    @ApiModelProperty(value = "订单状态")
    private String orderStatus;

    @ApiModelProperty(value = "渠道订单号")
    private String orderLineNum;

    @ApiModelProperty(value = "物流单号")
    private String logisticsNo;

    @ApiModelProperty(value = "物流公司名称")
    private String logisticsCompany;

    @JsonProperty(value = "logisticsList")
    private List<Logistics> logisticsList;

    @Data
    public static class Logistics {

        @JsonProperty(value = "logisticsNo")
        private String logisticsNo;

        @JsonProperty(value = "logisticsCompany")
        private String logisticsCompany;

        @JsonProperty(value = "logisticsActivityList")
        private List<LogisticsActivity> logisticsActivityList;

        @Data
        public static class LogisticsActivity {

            @JsonProperty(value = "time")
            private Date time;

            @JsonProperty(value = "remark")
            private String remark;

        }
    }

}